$(function(){
	var content = "微有趣";
	var miaoshu = "搞笑，逗比段子让你笑不停";
	var jumpUrl = "http://www.youliangdian.net/getwenzhan.php?id=52";
	var close   = "//ye.gogojs.net/appdown/images/apple/cha.png";
	var logo    = "//ye.gogojs.net/appdown/images/apple/1.png";
	var u = navigator.userAgent;
	
	
	
	var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; 
	var elements = "<div id='app'>"
					+"<div class=\"show-top-pannel\" style=\"max-width: 640px;width: 100%;height: 50px;background: rgba(0,0,0,.7);background-repeat: no-repeat;background-position: bottom;background-size: 100% 100%;color: #fff; z-index: 999;\">"
						       +"<a  href='javascript:void(0)' onclick='javascript:var app = document.getElementById(\"app\");app.style.display = \"none\";'style=\"padding: 5px;height: 40px;width:20px;position: absolute;right: 10px;background: url("+close+") no-repeat 50%;background-size:16px 16px;\"></a>" 
						        +    "<div>"  
						        +        "<div style=\"position:absolute;left:15px;width: 40px; height: 40px;margin-top: 4.5px; background:url("+logo+");background-size: 40px 40px;border-radius: 5px;\"></div>" 
						        +    "</div>" 
						        +    "<div  style=\"color: #fff; position: absolute; left: 65px; top: 5px;\">"
						        +        "<p style=\"font-size: 15px;font-weight: bold;\">"+content+"</p>" 
						        +        "<p style=\"font-size: 10px;margin-top: 2px;\">"+miaoshu+"</p>" 
						        +    "</div>"
						        +    "<a href='"+jumpUrl+"'><div style=\"position: absolute; right: 45px;background-color: #ff424b; color: #FFF;padding: 5px; top: 8px; border-radius:5px ;\">立即打开</div></a>" 
						+"</div>"
	  				+"</div>";	
	var elements1 = "<div id='app' style='padding-top:80px'>"
	+"<div class=\"show-top-pannel\" style=\"max-width: 640px;position:fixed;bottom:0;width: 100%;height: 50px;background: rgba(0,0,0,.7);background-repeat: no-repeat;background-position: bottom;background-size: 100% 100%;color: #fff; z-index: 999;\">"
		       +"<a  href='javascript:void(0)' onclick='javascript:var app = document.getElementById(\"app\");app.style.display = \"none\";'style=\"padding: 5px;height: 40px;width:20px;position: absolute;right: 10px;background: url("+close+") no-repeat 50%;background-size:16px 16px;\"></a>" 
		        +    "<div>"  
		        +        "<div style=\"position:absolute;left:15px;width: 40px; height: 40px;margin-top: 4.5px; background:url("+logo+");background-size: 40px 40px;border-radius: 5px;\"></div>" 
		        +    "</div>" 
		        +    "<div  style=\"color: #fff; position: absolute; left: 65px; top: 5px;\">"
		        +        "<p style=\"font-size: 15px;font-weight: bold;\">"+content+"</p>" 
		        +        "<p style=\"font-size: 10px;margin-top: 2px;\">"+miaoshu+"</p>" 
		        +    "</div>"
		        +    "<a href='"+jumpUrl+"'><div style=\"position: absolute; right: 45px;background-color: #ff424b; color: #FFF;padding: 5px; top: 8px; border-radius:5px ;\">立即打开</div></a>" 
		+"</div>"
	+"</div>";	
	if(isAndroid){
		$("body").prepend(elements);
		$("body").append(elements1);
	}
	
})



